# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ristretto
pkgver=0.10.0
pkgrel=0
pkgdesc="Image viewer for Xfce"
url="https://docs.xfce.org/apps/ristretto/start"
arch="all"
license="GPL-2.0-or-later"
depends="desktop-file-utils hicolor-icon-theme"
makedepends="libxfce4ui-dev dbus-glib-dev libexif-dev thunar-dev"
subpackages="$pkgname-lang"
source="https://archive.xfce.org/src/apps/ristretto/${pkgver%.*}/ristretto-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-debug
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="1727025bbc056a71475d91505cc141661b011c3944cf4ca4d96b48a9ad7e1b28b8f4b0c856fa789cd2c877c1faa27aa57441e35e06f38fd2b81ddcd3284dc2b6  ristretto-0.10.0.tar.bz2"
